<?php
/*
 *      editproduct.php
 *      
 *      Copyright 2011 godfather.typhoon.tycoon@banme <chungnguyenhuu911@gmail.com>
 *      
 *      This program is free software; you can redistribute it and/or modify
 *      it under the terms of the GNU General Public License as published by
 *      the Free Software Foundation; either version 2 of the License, or
 *      (at your option) any later version.
 *      
 *      This program is distributed in the hope that it will be useful,
 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *      GNU General Public License for more details.
 *      
 *      You should have received a copy of the GNU General Public License
 *      along with this program; if not, write to the Free Software
 *      Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
 *      MA 02110-1301, USA.
 *      
 *      
 */

?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<?='<div align="center" class="clear"></div>';?>
	<?=validation_errors('<div style="color:red" class="error">', '</div>'); ?>
	<?=form_open("product/edit");?>
	<table border="0" cellspacing="4" cellpadding="0" width="80%">
		<tr  valign="top">
			<td ><?=$this->lang->line('lang.i18n.messages.object.id');?></td>
			<td><input type="text" name="id" value="<?=set_value('id',$id) ?>" readonly="readonly" /> </td>
		</tr>
		
		<tr align="left" valign="top">
			<td><?=$this->lang->line('lang.i18n.messages.object.name');?></td>
			<td>
				<input type="text" name="name" value="<?= set_value('name',$name) ?>" />  
				<?=form_error('name'); ?>
			</td>
		</tr>
		
		<tr align="left" valign="top">
			<td><?=$this->lang->line('lang.i18n.messages.object.name_en');?></td>
			<td><input type="text" name="name_en" value="<?= set_value('name_en',$name_en) ?>" />  </td>
		</tr>
		
		<tr align="left" valign="top">
			<td><?=$this->lang->line('lang.i18n.messages.object.content');?></td>
			<td><?=$fck1;?></td>
		</tr>
		<tr align="left" valign="top">
			<td><?=$this->lang->line('lang.i18n.messages.object.content_en');?></td>
			<td><?=$fck2;?></td>
		</tr>
		
		<tr align="right" valign="top">
			<td><?=form_submit('submit',$this->lang->line('lang.i18n.messages.object.edit'));?></td>
			<td></td>
		</tr>
	</table>
	<?=form_close();?>
